<!--
*Author：DGZ
 **  contact:service@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/sys/system/Sys_DictionaryList.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/sys/system/Sys_DictionaryList.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'DictionaryListId',
                footer: "Foots",
                cnName: '字典明细',
                name: 'system/Sys_DictionaryList',
                newTabEdit: false,
                url: "/Sys_DictionaryList/",
                sortName: "DictionaryListId"
            });
            const editFormFields = ref({"DicValue":"","DicName":"","OrderNo":"","Enabled":""});
            const editFormOptions = ref([[{"title":"数据源Value","field":"DicValue","type":"text"},
                               {"title":"数据源Text","field":"DicName","type":"text"},
                               {"title":"排序号","field":"OrderNo","type":"text"},
                               {"dataKey":"enabled","data":[],"title":"是否可用","field":"Enabled","type":"switch"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'DictionaryListId',title:'DictionaryListId',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'DictionaryId',title:'数据源ID',type:'int',width:90,readonly:true,align:'left'},
                       {field:'DicValue',title:'数据源Value',type:'string',width:90,align:'left'},
                       {field:'DicName',title:'数据源Text',type:'string',width:90,align:'left'},
                       {field:'OrderNo',title:'排序号',type:'int',width:90,align:'left'},
                       {field:'Enabled',title:'是否可用',type:'sbyte',bind:{ key:'enabled',data:[]},width:90,align:'left'},
                       {field:'Remarks',title:'备注',type:'string',width:120,align:'left'},
                       {field:'CreateId',title:'创建人编号',type:'int',width:90,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:130,readonly:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:90,readonly:true,align:'left'},
                       {field:'ModifyId',title:'修改人编号',type:'int',width:90,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人',type:'string',width:130,align:'left'},
                       {field:'ModifyTime',title:'修改时间',type:'datetime',width:90,align:'left'}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
